{% extends 'myadmin/base.html' %}
{% block myadmin_collapse %} in {% endblock %}
{% block myadmin_pingjia %} active {% endblock %}

{% block myadmin_base %}
    <h2 class="glyphicon glyphicon-stats">&nbsp;教师评价成绩</h2>
    <div class="table-responsive">
        <table class="table table-striped ">
            <thead>
            <tr>
                <th>#</th>
                <th>教工号</th>
                <th>姓名</th>
                <th>性别</th>
                <th>手机号</th>
                <th>学生评价率</th>
                <th>成绩</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>


            {% for row in data %}
                <tr>
                <td>{{ forloop.counter }}</td>

                    {% for cell in row %}
                        {{ row.extend }}

                            <td>{{ cell }}</td>



                    {% endfor %}
                    <td>

                        <a class="btn-sm btn-primary" href="{% url 'myadmin_pingjia_show'%}?id={{ row | first }}">查看</a>
                    </td>
                </tr>

            {% endfor %}


            </tbody>

        </table>
        {#分页#}
        {#        <nav aria-label="Page navigation ">#}
        {#            <ul class="pagination navbar-right" style="margin-right: 30px">#}
        {#                <li>#}
        {#                    <a href="/myadmin/stu/{{ pIndex|add:-1 }}" aria-label="Previous">#}
        {#                        <span aria-hidden="true">&laquo;</span>#}
        {#                    </a>#}
        {#                </li>#}
        {#                {% for i in plist %}#}
        {##}
        {##}
        {##}
        {#                    <li {% if i == pIndex %} class="active" {% endif %}  ><a href="/myadmin/stu/{{ i }}">{{ i }}</a>#}
        {#                    </li>#}
        {#                {% endfor %}#}
        {#                <li>#}
        {#                    <a href="/myadmin/stu/{{ pIndex|add:1 }}" aria-label="Next">#}
        {#                        <span aria-hidden="true">&raquo;</span>#}
        {#                    </a>#}
        {#                </li>#}
        {#            </ul>#}
        {#        </nav>#}
    </div>



{% endblock %}